//
//  ST_VMControllerNavBarProduce.swift
//  btvideo
//
//  Created by Jason on 2021/10/27.
//  Copyright © 2021 JarvanZhang. All rights reserved.
//

import UIKit
import Foundation

/// 自定义NavigationBar
protocol ST_VMControllerNavBarProduce  where Self : UIViewController {
    associatedtype NavigationBarType:UIView
    var tain_navigation_bar:NavigationBarType{ get}
    func layout_navigation_bar()
}

/// 白色主题NavigationBar
protocol ST_VMControllerLightNavBarProduce : ST_VMControllerNavBarProduce where NavigationBarType == ST_TIANLightNavigationBar{
}

extension ST_VMControllerLightNavBarProduce{
    
    func layout_navigation_bar(){
        view.addSubview(tain_navigation_bar)
        tain_navigation_bar.snp.makeConstraints { (make) in
            make.right.left.top.equalToSuperview()
            make.height.equalTo(statusBarHeight+44)
        }
    }
}







